package com.project.class8_24.factory.service;

import com.project.class8_24.factory.dao.IUserDao;
import com.project.class8_24.factory.dao.impl.DaoFactory;
import com.project.class8_24.factory.dao.impl.UserDaoImpl;

public class UserService {
    private IUserDao dao = (IUserDao) DaoFactory.getDao("IUserDao");
    public void add(){
        dao.add();
    }

    public static void main(String[] args) {
        UserService service = new UserService();
        service.add();
    }
}
